package cn.actoncode.boot.module.ai.dal.mapper.ability;

import cn.actoncode.boot.framework.mybatis.core.mapper.BaseMapperX;
import cn.actoncode.boot.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.actoncode.boot.module.ai.dal.dataobject.ability.AbilityUsedRecordDO;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 能力使用记录 Mapper
 *
 * @author bin
 */
@Mapper
public interface AbilityUsedRecordMapper extends BaseMapperX<AbilityUsedRecordDO> {

    @Select("SELECT * FROM ai_ability_used_record WHERE user_id = #{userId} AND deleted = FALSE")
    List<AbilityUsedRecordDO> getAbilityUsedRecordList(@Param("userId") Long userId);
}
